<?php

return
    [
        'menuPid'=>44,
        'prefix'=>'primary',
        'table'=>'announcement',// 基于此表构建 代码
        'modelName'=>'Announcement',//模块名
        'modelShowName'=>'游戏公告',
        //字段处理
        "fields"=>
            [
                ['field'=>'title','type'=>'varchar','title'=>'标题'],
                ['field'=>'inner_title','type'=>'varchar','title'=>'行内标题'],
                ['field'=>'content','type'=>'text','title'=>'内容'],
                ['field'=>'begin_time','type'=>'datetime','title'=>'开始时间'],
                ['field'=>'end_time','type'=>'datetime','title'=>'结束时间'],
            ],
        'functions'=> //功能
            [
                ['name'=>'model','path'=>'app/Models'],
                ['name'=>'dto','path'=>'app/DTOS/Admin','dtoList'=>['insertDTO','updateDTO','searchDTO']],
                ['name'=>'service','path'=>'app/Services','methods'=>['paginate','insert','updateById','deleteById','deleteByIds','getById']],
                ['name'=>'controller','path'=>'app/Http/Controllers/Admin','methods'=>[ 'paginate','insert','update','delete','detail']],
                ['name'=>'layuiAdminPage',
                    'output'=>'/code/xm2-admin/page/announcement',
                    'pages'=>
                        [
                            ['page'=>'form','functions'=>[]],
                            ['page'=>'index','functions'=>[ 'insert','update','delete','batchDelete']],
                        ]
                ],
                ['name'=>'route'],
                ['name'=>'menu','functions'=>['insert','update','delete','paginate','detail']],
            ],
    ];

